package org.java;

import org.nlp.util.Bloom;

public class DoBloomJoin {
	public static void main(String[] args) {
		Bloom bloom = new Bloom();
		long tagTime = System.currentTimeMillis();
		int minListCount = 910000; //测试记录条数
		int maxListCount = 1010000; //测试记录条数
		
		for (int i = 0; i < maxListCount; i++) {
			bloom.add("aaa>>" + i);
		}
		
		int count = 0;
		
		for (int i = 0; i < maxListCount; i++) {
			if 	(bloom.contains("aaa>>" + (12 - i))){
//				System.out.println("aaa>>" + (12 - i));
				count ++ ;				
			}
		}
		long p1 = System.currentTimeMillis()-tagTime;
		System.out.println("MidJoin:"+ p1);
		
		System.out.println("交集大小:"+ count);
	}
}
